




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/uhpqp/favicon.ico" rel="SHORTCUT ICON" type="image/x-icon"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>中国不动产查询网</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="Copyright" content="" />
<link rel="stylesheet" type="text/css"  href="/uhpqp/css/base.css" />
<style type="text/css">
	.query{padding:20px 10px;text-align:center;padding-top:100px;margin-bottom:150px;}
	.query .errortxt{width:630px;}
	.smsinfo{color: #333333;font-size: 13px;padding: 10px;display:none;}
	.hlptxt{text-align:center;margin-bottom:100px;font-size:13px;color:#333;}
	#pic{vertical-align: middle;cursor: pointer;}
	#rpl{cursor: pointer;}
	#randomNum,#phonecode,#smscode{width: 120px;}
	.dialog label{width: 160px;height: 40px;overflow: hidden;line-height: 40px;display: inline-block;vertical-align: middle;}
	.button.disabled{background-color: rgb(203, 209, 214);border: solid 1px rgb(190, 196, 201);border-bottom: solid 1px rgb(183, 189, 194);border-right: solid 1px rgb(186, 195, 204);}
</style>
</head>
<body>
		<div class="wrap">
			<div class="head">
				<div class="logo">中国不动产查询网</div>	
			</div>
		</div>
		<div class="nav">
			<div class="menu">
					<ul>
						
						<li><a href="/uhpqp/uhpqp/query"  class="current">房产查验</a></li>
						<li><a href="/uhpqp/index.html">综合信息</a></li>
						<li><a href="/uhpqp/list/20.html">财富资讯</a></li>
						<li><a href="/uhpqp/list/23.html">房产安全</a></li>
						<li><a href="/uhpqp/list/21.html">房产政策</a></li>
						<li><a href="/uhpqp/list/22.html">房产名词</a></li>
					</ul>
					<div class="cls"></div>
			</div>
		</div>
		<div class="wrap mt10">
			<div class="row mt10">
				<div class="post">
					<div class="title">
						<h4><a href="/uhpqp/">首页</a> &gt; 房产查验</h4>
					</div>
					<div class="query mt10">
						
						<div class="mt10" >
							<form id="frm001" action="/uhpqp/uhpqp/query" method="post">
								<input type="hidden" id="querytype" name="type" value="1"/>
								<p><input type="text" name="servicenum" id="servicenum" value="" placeholder="请输入服务编码" maxlength="16" tabindex="1" />  <input maxlength="4" type="text" name="smscode" id="smscode" value="" placeholder="短信验证码" tabindex="3" /> <a class="button" id="btn_sms_code" tabindex="2">获取短信验证码</a></p>
								<p class="smsinfo" id="smsinfo">验证码已通过短信发送到产权人登记时注册的手机上，请注意查收，30秒后如未收到您可以再次获取</p>
								<a class="button" id="btn_query_basic" tabindex="4">查询基本信息</a> 　　<a id="btn_query_archive" class="button" tabindex="5">查询档案信息</a>
							</form>
						</div>
					</div>
					<p class="hlptxt">需要帮助?请查看<a href="/uhpqp/help.html" target="_blank">服务指南</a></p>
				</div>
				<div class="cls"></div>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
			</div>
		</div>
		
<div class="wrap mt10">
	<div class="footer">
		信息反馈 | 技术支持：<a href="http://www.fangchancaifu.com" target="_blank">裕通科技股份有限公司</a> | 粤ICP备13021311号<br/>
		联系邮箱：service@bdccx.com | 服务热线：020-61075860<br/>
		<span style="font-family: Arial, Helvetica, sans-serif;">Copyright &copy;  2013,BDCCX.COM, All Rights Reserved</span> <br />
	</div>	
</div>
<script type="text/javascript">
	/* if (window.top != window || (document.domain != "bdccx.com" && document.domain != "www.bdccx.com")){
		window.top.location.href="http://www.bdccx.com/";
	} */
</script>
		
<div style="text-align: center;margin-bottom: 30px;">
	<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="/uhpqp/js/si.js"></SCRIPT>
</div>
		<div class="dialog">
			<div class="dcnt">
				<div class="title">请输入图形验证码</div>
				<div class="content">
					<div class="errortxt">
						<span id="errormsg">不正确的</span>
					</div>
					<label>产权人手机号后四位</label>
					<input id="phonecode" name="phonecode" class="number" type="text" maxlength="4" size="4" title="产权人手机号后4位" />
					<br/><br/>
					<img id="pic" name="pic" title="点击刷新验证码" />
					<input id="randomNum" name="randomNum" type="text" maxlength="4" size="4" title="点击图片可刷新验证码" />
					<div id="loading" style="text-align: center;padding: 10px 0px;">
						正在发送... <img style="vertical-align: baseline;" src="/uhpqp/images/05043150.gif" alt="" />
					</div>
				</div>
				<div class="bar"><a class="button">确定</a> <a class="button">取消</a></div>
			</div>
		</div>
<script type="text/javascript" src="/uhpqp/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/uhpqp/js/common.js"></script>
<script type="text/javascript">
function CountDown(times,intervals,fn,complete){
	this.times = times;
	this.delay = intervals;
	this.fn = fn;
	this.complete = complete;
	this._interval = null;
	this.runtimes = 0;
}
CountDown.prototype = {
		constructor:CountDown,
		start:function(){
			this.stop();
			var that = this;
			this._interval = setInterval(function(){
				if(that.runtimes++>=that.times){
					that.stop();
				}else{
					that.fn();
				}
			}, this.delay);
		},
		stop:function(){
			if(this._interval){
				clearInterval(this._interval);
			}
			this.runtimes = 0;
			this.complete();
		}
};

$('#servicenum').focus();
$('#servicenum,#btn_phone_code').keydown(function(e) {
	if(e.keyCode==13) {
		$('#btn_sms_code').click();
	}
});
var msgsend = false;
var countDown = new CountDown(30, 1000, function(){
	$('#btn_sms_code').text('('+(this.times-this.runtimes)+')获取短信验证码');
	$('#btn_sms_code').addClass('disabled');
	msgsend = true;
}, function(){
	$('#btn_sms_code').text('获取短信验证码');
	$('#btn_sms_code').removeClass('disabled');
	msgsend = false;
});

$('#btn_sms_code').click(function(){
	if(msgsend){return;}
	$('.errortxt').fadeOut();
	if($.trim($('#servicenum').val()) == '') {
		if($('.query .errortxt').length>0){
			$('#errormsg').html('请输入服务编码');
		}else{
			$('<div />').addClass('errortxt').html('<span id="errormsg">请输入服务编码</span><span class="close">&times;</span>').prependTo('.query');
		}
		$('.query .errortxt').fadeIn('fast');
		$('#servicenum').focus();
		return;
	}
	var $this = $(this),self=this;
	if(self.dialog == null){
		var templ = $('.dialog').get(0).outerHTML;
		var $dialog = $(templ);
		$('#loading',$dialog).hide();
		$('.errortxt',$dialog).hide();
		$(document.body).append($dialog);
		$('#randomNum',$dialog).keydown(
			function(e) {
				$('.errortxt',$dialog).fadeOut('normal');
				if(e.keyCode==13) {
					$('.button:first',$dialog).click();
				}
			}	
		);
		
		$('.button:first',$dialog).click(function(){
			var phonecode = $('#phonecode',$dialog).val();
			if(phonecode == '' || phonecode.length!=4){
				$('.errortxt',$dialog).text('请输入产权人手机号后4位').hide().fadeIn();
				$('#phonecode',$dialog).focus();
				return;
			}
			if($.trim($('#randomNum',$dialog).val())=='') {
				$('.errortxt',$dialog).text('请输入图形验证码！').hide().fadeIn();
				$('#randomNum',$dialog).focus();
				return;
			}
			$('input[type=text]',$dialog).hide();
			$('label',$dialog).hide();
			$('#pic',$dialog).hide();
			
			$('#loading',$dialog).show();
			$this.attr('disabled',true); 
			$this.addClass('disabled');

			//disable the button
			$.post('/uhpqp/uhpqp/query/sms',{servicenum:$('#servicenum').val(),phonecode:phonecode,randomNum:$('#randomNum',$dialog).val()},function(json){
				$('#loading',$dialog).hide();
				if(json && json.error && json.error.msg){
					countDown.stop();
					if(json.error.msg=='图形验证码输入不正确') {
						$('#pic',$dialog).attr('src','../validate/code?r='+Math.random());
						$('#pic',$dialog).show();
						$('.errortxt',$dialog).text('图形验证码输入不正确，请重新输入！').hide().fadeIn();
						$('label',$dialog).show();
						$('input[type=text]',$dialog).show();
						$('#randomNum',$dialog).val('').focus();
					} else {
						if($('.query .errortxt').length>0){
							$('#errormsg').html(json.error.msg);
						}else{
							$('<div />').addClass('errortxt').html('<span id="errormsg">'+json.error.msg+'</span><span class="close">x</span>').prependTo('.query');
						}
						self.dialog.remove();
						self.dialog = null;
						$this.attr('disabled',false);
						$this.removeClass('disabled');
						$('.query .errortxt').fadeIn('fast');
						$('#smsinfo').fadeOut('fast');
						$('#servicenum').focus();	
					}
				}else{
					countDown.start();
					self.dialog.remove();
					self.dialog = null;
					$('#smscode').focus();
					$this.attr('disabled',false);
					$this.removeClass('disabled');
					$('#smsinfo').fadeIn();
					$('.query .errortxt').hide();
				}
			},'json');
		});
		
		$('.button:last',$dialog).click(function(){
			self.dialog.hide();
			$('#servicenum').focus();
		});
		$('#pic',$dialog).click(function() {
			$('#randomNum',$dialog).focus();
			$('#pic',$dialog).attr('src','/uhpqp/validate/code?r='+Math.random());
		});
		self.dialog = $dialog;
	}
	$('#pic',self.dialog).attr('src','/uhpqp/validate/code?r='+Math.random());
	self.dialog.show();
	$('#phonecode',self.dialog).focus();
});

$('.errortxt .close').live('click',function(){
	$('.errortxt').fadeOut();
});
$('#frm001').submit(function(){
	if($.trim($('#servicenum').val()) == ''){
		$('#servicenum').focus();
		return false;
	}
	if($.trim($('#smscode').val()) == ''){
		$('#smscode').focus();
		return false;
	}
});
$('#btn_query_basic').keydown(function(e) {
	if(e.keyCode==13) {
		$('#btn_query_basic').click();
	}
});
$('#btn_query_basic').click(function(){
	$('#querytype').val('1');
	$('#frm001').submit();
});
$('#btn_query_archive').keydown(function(e) {
	if(e.keyCode==13) {
		$('#btn_query_archive').click();
	}
});
$('#btn_query_archive').click(function(){
	$('#querytype').val('2');
	$('#frm001').submit();
});
$('#servicenum').live('keydown',function(e){
	var code = e.keyCode;
	if(code == 8 || code == 46 || code ==37 || code==39 ){return true;}//退格,delete,向左，向右
	if((code>47 && code <58) || (code>95 && code < 106)){return true;}//小键盘,数字键
	if(code == 9) {return true;} //Tab键
	var charcode = String.fromCharCode(code);
	if(charcode == 'X' || charcode=='x'){return true;}
	return false;
}).live('focus',function() {
    this.style.imeMode='disabled';   // 禁用输入法,禁止输入中文字符
});
</script>
<script src="/uhpqp/services/Stat.js" type="text/javascript"></script>
<script>
	if(window._bdccx_stat)_bdccx_stat("Dest=/uhpqp/services/Stat.jsp");
</script>
</body>
</html>